package com.tengju.bff.interfaces.covercharge.entity.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.tengju.user.domain.annotation.Sensitive;
import com.tengju.user.domain.shared.SensitiveFieldType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
@ApiModel(value = "个体发放结果")
public class PersonalGiveVo {

    @ApiModelProperty(value = "所属周期", required = true)
    private String cycleDate;

    @ApiModelProperty(value = "代理编号", required = true)
    private Integer idCode;

    @Sensitive(type = SensitiveFieldType.NAME)
    @ApiModelProperty(value = "代理姓名", required = true)
    private String name;

    @Sensitive(type = SensitiveFieldType.MOBILE)
    @ApiModelProperty(value = "手机号", required = true)
    private String mobile;

    @ApiModelProperty(value = "平台", required = true)
    private String platformCode;

    @ApiModelProperty(value = "合作方式", required = true)
    private String authType;

    @Sensitive(type = SensitiveFieldType.NAME)
    @ApiModelProperty(value = "户名", required = true)
    private String idcardName;

    @ApiModelProperty(value = "开户行", required = true)
    private String bankName;

    @Sensitive(type = SensitiveFieldType.BANKCARD_NO)
    @ApiModelProperty(value = "银行卡号", required = true)
    private String bankNo;

    @Sensitive(type = SensitiveFieldType.IDENTITY_NO)
    @ApiModelProperty(value = "身份证号", required = true)
    private String idcardNo;

    @ApiModelProperty(value = "个体工商户名称")
    private String merchantName;

    @Sensitive(type = SensitiveFieldType.DUTY_PARAGRAPH)
    @ApiModelProperty(value = "税号")
    private String merchantTaxNumber;

    @ApiModelProperty(value = "待审核金额", required = true)
    private BigDecimal applyMoney = BigDecimal.ZERO;

    @ApiModelProperty(value = "已审核金额", required = true)
    private BigDecimal passMoney = BigDecimal.ZERO;

    @ApiModelProperty(value = "手续费率", required = true)
    private BigDecimal ratio = BigDecimal.ZERO;

    @ApiModelProperty(value = "手续费", required = true)
    private BigDecimal fee = BigDecimal.ZERO;

    @ApiModelProperty(value = "应付金额", required = true)
    private BigDecimal money = BigDecimal.ZERO;

    @ApiModelProperty(value = "发放状态", required = true)
    private String statusStr;

    @ApiModelProperty(value = "打款备注", required = true)
    private String remark;

    @ApiModelProperty(value = "网银流水号")
    private String bankFlow;

    @ApiModelProperty(value = "打款渠道", required = true)
    private String channel;

    @ApiModelProperty(value = "共用注册个体户", required = true)
    private String common;

    @ApiModelProperty(value = "更新时间", required = true)
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date updateTime;

    @ApiModelProperty(value = "操作人", required = true)
    private String operator;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date startAt;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date endAt;

    private Integer status;

    private Integer cycleAddId;

    private Integer accountId;

    private String registeredInfo;

    @ApiModelProperty(value = "注册乐税是否显示变更打款状态按钮")
    private Boolean isUnknownButton;

    @ApiModelProperty(value = "个人是否显示变更打款状态按钮")
    private Boolean isPersonalButton;

    @ApiModelProperty(value = "是否显示打款按钮")
    private Boolean isPayButton;

    /**
     * 以下是代发需要用到的参数
     * */

    @ApiModelProperty(value = "是否打款成功")
    private Boolean isSuccess;

    @ApiModelProperty(value = "打款人")
    private String withdrawer;

    @ApiModelProperty(value = "返回打款信息")
    private String returnMsg;

    @ApiModelProperty(value = "交易周期表id")
    private Integer addTransOrderId;

    @ApiModelProperty(value = "交易周期表错误次数")
    private Integer addTransOrderNum;

    @ApiModelProperty(value = "乐税注销状态")
    private Integer letaxStatus;

    @ApiModelProperty(value = "乐税注销状态中文")
    private String letaxStatusStr;

}
